package com.example.orderflow.mappers;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *  数据库操作接口
 */
@Mapper
public interface RoleInfoMapper<T,P> extends BaseMapper<T,P> {

	/**
	 * 根据RoleName更新
	 */
	 Integer updateByRoleName(@Param("bean") T t,@Param("roleName") String roleName);


	/**
	 * 根据RoleName删除
	 */
	 Integer deleteByRoleName(@Param("roleName") String roleName);


	/**
	 * 根据RoleName获取对象
	 */
	 T selectByRoleName(@Param("roleName") String roleName);


}
